import request from '@/utils/request'
const api_name ='/eduservice/coursefront'
export default {
  getPageList(page, limit, searchObj) {
    return request({
      url: `${api_name}/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  // 获取课程所有分类
  getNestedTreeList() {
    return request({
      url: `${api_name}/getSubject`,
      method: 'get'
    })
  },

  getById(courseId) {
    return request({
      url: `${api_name}/${courseId}`,
      method: 'get'
    })
  },
  getSectionInfo(courseId){
    return request({
      url:`${api_name}/getSectionInfo/${courseId}`,
      method: 'get'
    })
  }

}
